package org.sgx.gwteditors.testgallery.gallery.simple;

import java.util.Map;

import org.sgx.gwteditors.client.impl1.basetypes.Color;
import org.sgx.gwteditors.client.impl1.simple.ColorEditor;
import org.sgx.gwteditors.client.impl1.simple.StringEditorEntry;
import org.sgx.gwteditors.client.util.TestUtil;
import org.sgx.gwteditors.testgallery.gallery.Test;
import org.sgx.gwteditors.testgallery.gallery.TestResources;

import com.google.gwt.resources.client.ExternalTextResource;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;

public class SimpleStringEditorEntry implements Test {	
	
	@Override
	public void test(Panel parent) {
		/*---begintestmaincode---*/
StringEditorEntry ed = new StringEditorEntry(); 
ed.load("A string"); 
parent.add(ed.getWidget());
		/*---endtestmaincode---*/
	}

	
	//test stuff
	@Override
	public String getName() {
		return "string";
	}

	@Override
	public String[] getTags() {		
		return null;
	}

	@Override
	public String getDescription() {
		return "String editor simple test";
	}
	@Override
	public Map<String, ExternalTextResource> getJavaSources() {
		return TestUtil.getResource(getName(), TestResources.INSTANCE.SimpleStringEditorEntryTest());
	}
	
}
